package com.demo.activityservicedemo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.demo.activityservicedemo.demo1.Demo1Activity
import com.demo.activityservicedemo.demo2.Demo2Activity
import com.demo.activityservicedemo.take.TakeActivity
import com.demo.activityservicedemo.threadpool.ThreadPoolActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    fun clickDemo1(view: View) {
        startActivity(Intent(this,Demo1Activity::class.java))
    }

    fun clickDemo2(view: View) {
        startActivity(Intent(this, Demo2Activity::class.java))
    }

    fun clickTake(view: View) {
        startActivity(Intent(this,TakeActivity::class.java))
    }

    fun clickThreadPool(view: View) {
        startActivity(Intent(this,ThreadPoolActivity::class.java))
    }
}